local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1
L0_1 = {}
L1_1 = vector3
L2_1 = -1656.25
L3_1 = -1120.387
L4_1 = 30.07145
L1_1 = L1_1(L2_1, L3_1, L4_1)
L0_1.coords = L1_1
L0_1.started = false
L0_1.currentrotation = 0.0
L0_1.stageinprogress = false
L0_1.allowedtosit = true
L0_1.stage = 0
L0_1.stagespeed = 0.5
L0_1.currentplayers = 0
L0_1.currentcabin = 16
L0_1.currentround = 0
L1_1 = {}
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[1] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[2] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[3] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[4] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[5] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[6] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[7] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[8] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[9] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[10] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[11] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[12] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[13] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[14] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[15] = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.taken = false
L4_1.takenplayerid = nil
L4_1.seattype = 1
L4_1.seatround = 0
L5_1 = {}
L5_1.taken = false
L5_1.takenplayerid = nil
L5_1.seattype = 1
L5_1.seatround = 0
L6_1 = {}
L6_1.taken = false
L6_1.takenplayerid = nil
L6_1.seattype = 1
L6_1.seatround = 0
L7_1 = {}
L7_1.taken = false
L7_1.takenplayerid = nil
L7_1.seattype = 1
L7_1.seatround = 0
L8_1 = {}
L8_1.taken = false
L8_1.takenplayerid = nil
L8_1.seattype = 1
L8_1.seatround = 0
L9_1 = {}
L9_1.taken = false
L9_1.takenplayerid = nil
L9_1.seattype = 1
L9_1.seatround = 0
L10_1 = {}
L10_1.taken = false
L10_1.takenplayerid = nil
L10_1.seattype = 1
L10_1.seatround = 0
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.players = L3_1
L1_1[16] = L2_1
L0_1.cabins = L1_1
ferrishandler = L0_1
function L0_1(A0_2, A1_2, A2_2)
  local L3_2, L4_2, L5_2
  L3_2 = A1_2 / A2_2
  L3_2 = L3_2 * 100.0
  if L3_2 > 60.0 then
    L4_2 = 130.0
    L4_2 = L4_2 - L3_2
    L5_2 = L4_2 / 100.0
    L5_2 = L5_2 * A0_2
    return L5_2
  else
    return A0_2
  end
end
CalculateSpeed = L0_1
L0_1 = GlobalState
L0_1["attraction7-phase"] = true
L0_1 = GlobalState
L0_1["attraction7-ridedata1"] = 0.0
L0_1 = GlobalState
L0_1["attraction7-speeddata1"] = 0.1
L0_1 = GlobalState
L0_1["attraction7-recalculated"] = 0.0
L0_1 = GlobalState
L0_1["attraction7-synchdata"] = 1
function L0_1()
  local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2
  L0_2 = ferrishandler
  L0_2 = L0_2.started
  if true == L0_2 then
    L0_2 = Citizen
    L0_2 = L0_2.Wait
    L1_2 = 1000
    L0_2(L1_2)
    L0_2 = TriggerClientEvent
    L1_2 = "rtx_themepark:Global:MusicStartAttraction"
    L2_2 = -1
    L3_2 = "ferris"
    L4_2 = math
    L4_2 = L4_2.random
    L5_2 = 1
    L6_2 = Config
    L6_2 = L6_2.AttractionsMusic
    L6_2 = L6_2.ferris
    L6_2 = L6_2.playlist
    L6_2 = #L6_2
    L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2 = L4_2(L5_2, L6_2)
    L0_2(L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2)
    L0_2 = ferrishandler
    L0_2.stageinprogress = true
    L0_2 = ferrishandler
    L0_2.stagespeed = 0.1
    L0_2 = ferrishandler
    L0_2.allowedtosit = false
    L0_2 = ferrishandler
    L0_2.currentround = 0
    L0_2 = GlobalState
    L0_2["attraction7-phase"] = true
    L0_2 = GlobalState
    L0_2["attraction7-ridedata1"] = 0.0
    L0_2 = GlobalState
    L0_2["attraction7-speeddata1"] = 0.1
    L0_2 = GlobalState
    L0_2["attraction7-recalculated"] = 0.0
    L0_2 = GlobalState
    L0_2["attraction7-synchdata"] = 1
    while true do
      L0_2 = ferrishandler
      L0_2 = L0_2.stageinprogress
      if true ~= L0_2 then
        break
      end
      L0_2 = Citizen
      L0_2 = L0_2.Wait
      L1_2 = 20
      L0_2(L1_2)
      L0_2 = false
      L1_2 = ferrishandler
      L1_2 = L1_2.currentcabin
      L1_2 = L1_2 + 1
      L2_2 = ferrishandler
      L2_2 = L2_2.currentcabin
      if 16 == L2_2 then
        L1_2 = 1
      end
      L2_2 = L1_2 * 23.0
      L3_2 = 0.5 * L1_2
      L4_2 = L2_2 - L3_2
      L5_2 = ferrishandler
      L5_2 = L5_2.currentrotation
      L5_2 = L4_2 - L5_2
      L6_2 = 2.5
      if L5_2 < L6_2 then
        L6_2 = ferrishandler
        L6_2.stagespeed = 0.025
      elseif L5_2 < 5.0 then
        L6_2 = ferrishandler
        L6_2.stagespeed = 0.05
      else
        L6_2 = ferrishandler
        L6_2.stagespeed = 0.1
      end
      L6_2 = 0.01
      if L5_2 < L6_2 then
        L6_2 = ferrishandler
        L6_2.currentrotation = L4_2
        L0_2 = true
        if 16 == L1_2 then
        else
          L6_2 = ferrishandler
          L7_2 = ferrishandler
          L7_2 = L7_2.currentround
          L7_2 = L7_2 + 1
          L6_2.currentround = L7_2
        end
      else
        L6_2 = ferrishandler
        L7_2 = ferrishandler
        L7_2 = L7_2.currentrotation
        L8_2 = ferrishandler
        L8_2 = L8_2.stagespeed
        L7_2 = L7_2 + L8_2
        L6_2.currentrotation = L7_2
      end
      L6_2 = ferrishandler
      L6_2 = L6_2.currentrotation
      L7_2 = 360.0
      if L6_2 > L7_2 and 16 == L1_2 then
        L0_2 = true
        L6_2 = ferrishandler
        L7_2 = ferrishandler
        L7_2 = L7_2.currentround
        L7_2 = L7_2 + 1
        L6_2.currentround = L7_2
        L6_2 = ferrishandler
        L6_2.currentrotation = 0.0
      end
      L6_2 = GlobalState
      L6_2["attraction7-phase"] = L0_2
      L6_2 = GlobalState
      L7_2 = ferrishandler
      L7_2 = L7_2.currentrotation
      L6_2["attraction7-ridedata1"] = L7_2
      L6_2 = GlobalState
      L7_2 = ferrishandler
      L7_2 = L7_2.stagespeed
      L6_2["attraction7-speeddata1"] = L7_2
      L6_2 = GlobalState
      L6_2["attraction7-recalculated"] = L4_2
      L6_2 = GlobalState
      L7_2 = GlobalState
      L7_2 = L7_2["attraction7-synchdata"]
      L7_2 = L7_2 + 1
      L6_2["attraction7-synchdata"] = L7_2
      if true == L0_2 then
        L6_2 = ferrishandler
        L6_2.allowedtosit = true
        L6_2 = ferrishandler
        L6_2.currentcabin = L1_2
        L6_2 = ferrishandler
        L6_2 = L6_2.cabins
        L6_2 = L6_2[L1_2]
        L7_2 = ipairs
        L8_2 = L6_2.players
        L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2)
        for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do
          L13_2 = L12_2.taken
          if true == L13_2 then
            L13_2 = ferrishandler
            L13_2 = L13_2.currentround
            L14_2 = L12_2.seatround
            if L13_2 > L14_2 then
              L13_2 = pairs
              L14_2 = playsersinthemepark
              L13_2, L14_2, L15_2, L16_2 = L13_2(L14_2)
              for L17_2, L18_2 in L13_2, L14_2, L15_2, L16_2 do
                L19_2 = TriggerClientEvent
                L20_2 = "rtx_themepark:Ferris:SynchronizeSeat"
                L21_2 = L18_2
                L22_2 = L1_2
                L23_2 = L11_2
                L24_2 = false
                L25_2 = L12_2.takenplayerid
                L26_2 = 1
                L19_2(L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2)
              end
              L13_2 = TriggerClientEvent
              L14_2 = "rtx_themepark:Ferris:SeatExit"
              L15_2 = L12_2.takenplayerid
              L13_2(L14_2, L15_2)
              L13_2 = TriggerClientEvent
              L14_2 = "rtx_themepark:Global:AttractionUsing"
              L15_2 = L12_2.takenplayerid
              L16_2 = false
              L13_2(L14_2, L15_2, L16_2)
              L13_2 = TriggerClientEvent
              L14_2 = "rtx_themepark:Global:TicketHandler"
              L15_2 = L12_2.takenplayerid
              L16_2 = 6
              L17_2 = false
              L13_2(L14_2, L15_2, L16_2, L17_2)
              L12_2.taken = false
              L12_2.takenplayerid = nil
              L12_2.seatround = 0
              L12_2.seattype = 1
              L13_2 = ferrishandler
              L14_2 = ferrishandler
              L14_2 = L14_2.currentplayers
              L14_2 = L14_2 - 1
              L13_2.currentplayers = L14_2
            end
          end
        end
        L7_2 = Citizen
        L7_2 = L7_2.Wait
        L8_2 = Config
        L8_2 = L8_2.AttractionsSettings
        L8_2 = L8_2.ferris
        L8_2 = L8_2.ferrisseatwait
        L7_2(L8_2)
        L7_2 = ferrishandler
        L7_2.allowedtosit = false
        L7_2 = ferrishandler
        L7_2.currentcabin = L1_2
        L7_2 = ferrishandler
        L7_2 = L7_2.currentplayers
        if 0 == L7_2 then
          L7_2 = ferrishandler
          L7_2.stageinprogress = false
          L7_2 = ferrishandler
          L7_2.allowedtosit = true
        end
      end
    end
    L0_2 = ferrishandler
    L0_2.started = false
    L0_2 = GlobalState
    L0_2["attraction7-phase"] = true
    L0_2 = TriggerClientEvent
    L1_2 = "rtx_themepark:Global:MusicStopAttraction"
    L2_2 = -1
    L3_2 = "ferris"
    L0_2(L1_2, L2_2, L3_2)
    L0_2 = TriggerClientEvent
    L1_2 = "rtx_themepark:Ferris:SynchronizeStarted"
    L2_2 = -1
    L3_2 = false
    L0_2(L1_2, L2_2, L3_2)
  end
end
StartFerris = L0_1
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Ferris:SeatUse"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Ferris:SeatUse"
function L2_1()
  local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2
  L0_2 = source
  L1_2 = themeparkattractionsopenstatus
  L1_2 = L1_2[8]
  if true == L1_2 then
    L1_2 = themeparkdisabled
    if false == L1_2 then
      L1_2 = ferrishandler
      L1_2 = L1_2.allowedtosit
      if true == L1_2 then
        L1_2 = ferrishandler
        L1_2 = L1_2.cabins
        L2_2 = ferrishandler
        L2_2 = L2_2.currentcabin
        L1_2 = L1_2[L2_2]
        L2_2 = false
        L3_2 = nil
        L4_2 = ipairs
        L5_2 = L1_2.players
        L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2)
        for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do
          L10_2 = L9_2.taken
          if false == L10_2 and false == L2_2 then
            L2_2 = true
            L3_2 = L8_2
            break
          end
        end
        if true == L2_2 then
          L4_2 = ferrishandler
          L4_2 = L4_2.cabins
          L5_2 = ferrishandler
          L5_2 = L5_2.currentcabin
          L4_2 = L4_2[L5_2]
          L4_2 = L4_2.players
          L4_2 = L4_2[L3_2]
          L4_2.taken = true
          L4_2.takenplayerid = L0_2
          L5_2 = ferrishandler
          L5_2 = L5_2.currentround
          L4_2.seatround = L5_2
          L5_2 = ferrishandler
          L6_2 = ferrishandler
          L6_2 = L6_2.currentplayers
          L6_2 = L6_2 + 1
          L5_2.currentplayers = L6_2
          L5_2 = pairs
          L6_2 = playsersinthemepark
          L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2)
          for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do
            L11_2 = TriggerClientEvent
            L12_2 = "rtx_themepark:Ferris:SynchronizeSeat"
            L13_2 = L10_2
            L14_2 = ferrishandler
            L14_2 = L14_2.currentcabin
            L15_2 = L3_2
            L16_2 = true
            L17_2 = L4_2.takenplayerid
            L18_2 = 1
            L11_2(L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2)
          end
          L5_2 = TriggerClientEvent
          L6_2 = "rtx_themepark:Ferris:SeatData"
          L7_2 = L0_2
          L8_2 = ferrishandler
          L8_2 = L8_2.currentcabin
          L9_2 = L3_2
          L5_2(L6_2, L7_2, L8_2, L9_2)
          L5_2 = TriggerClientEvent
          L6_2 = "rtx_themepark:Global:AttractionUsing"
          L7_2 = L0_2
          L8_2 = true
          L5_2(L6_2, L7_2, L8_2)
          L5_2 = Config
          L5_2 = L5_2.ThemeParkControlAttractions
          if false == L5_2 then
            L5_2 = ferrishandler
            L5_2 = L5_2.started
            if false == L5_2 then
              L5_2 = ferrishandler
              L5_2.started = true
              L5_2 = Wait
              L6_2 = Config
              L6_2 = L6_2.AttractionsSettings
              L6_2 = L6_2.ferris
              L6_2 = L6_2.waitforplayers
              L5_2(L6_2)
              L5_2 = TriggerClientEvent
              L6_2 = "rtx_themepark:Ferris:SynchronizeStarted"
              L7_2 = -1
              L8_2 = true
              L5_2(L6_2, L7_2, L8_2)
              L5_2 = StartFerris
              L5_2()
            end
          end
        end
      else
        L1_2 = TriggerClientEvent
        L2_2 = "rtx_themepark:Notify"
        L3_2 = L0_2
        L4_2 = Language
        L5_2 = Config
        L5_2 = L5_2.Language
        L4_2 = L4_2[L5_2]
        L4_2 = L4_2.ferrismoving
        L1_2(L2_2, L3_2, L4_2)
      end
  end
  else
    L1_2 = TriggerClientEvent
    L2_2 = "rtx_themepark:Notify"
    L3_2 = L0_2
    L4_2 = Language
    L5_2 = Config
    L5_2 = L5_2.Language
    L4_2 = L4_2[L5_2]
    L4_2 = L4_2.attractionclosed
    L1_2(L2_2, L3_2, L4_2)
  end
end
L0_1(L1_1, L2_1)
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Ferris:SeatAnimChange"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Ferris:SeatAnimChange"
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2
  L2_2 = source
  if nil ~= A0_2 and nil ~= A1_2 then
    L3_2 = ferrishandler
    L3_2 = L3_2.started
    if true == L3_2 then
      L3_2 = ferrishandler
      L3_2 = L3_2.cabins
      L3_2 = L3_2[A0_2]
      L3_2 = L3_2.players
      L3_2 = L3_2[A1_2]
      L4_2 = L3_2.taken
      if true == L4_2 then
        L4_2 = L3_2.takenplayerid
        if L4_2 == L2_2 then
          L4_2 = L3_2.seattype
          if 1 == L4_2 then
            L3_2.seattype = 2
          else
            L3_2.seattype = 1
          end
          L4_2 = pairs
          L5_2 = playsersinthemepark
          L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2)
          for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do
            L10_2 = TriggerClientEvent
            L11_2 = "rtx_themepark:Ferris:SynchronizeSeat"
            L12_2 = L9_2
            L13_2 = A0_2
            L14_2 = A1_2
            L15_2 = true
            L16_2 = L2_2
            L17_2 = L3_2.seattype
            L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2)
          end
        end
      end
    end
  end
end
L0_1(L1_1, L2_1)
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Ferris:ExitFerris"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Ferris:ExitFerris"
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2
  L2_2 = source
  if nil ~= A0_2 and nil ~= A1_2 then
    L3_2 = ferrishandler
    L3_2 = L3_2.started
    if true == L3_2 then
      L3_2 = ferrishandler
      L3_2 = L3_2.cabins
      L3_2 = L3_2[A0_2]
      L3_2 = L3_2.players
      L3_2 = L3_2[A1_2]
      L4_2 = L3_2.taken
      if true == L4_2 then
        L4_2 = L3_2.takenplayerid
        if L4_2 == L2_2 then
          L4_2 = Config
          L4_2 = L4_2.ThemeParkDisableExit
          if false ~= L4_2 then
            L4_2 = ferrishandler
            L4_2 = L4_2.started
            if false ~= L4_2 then
              goto lbl_65
            end
          end
          L4_2 = pairs
          L5_2 = playsersinthemepark
          L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2)
          for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do
            L10_2 = TriggerClientEvent
            L11_2 = "rtx_themepark:Ferris:SynchronizeSeat"
            L12_2 = L9_2
            L13_2 = A0_2
            L14_2 = A1_2
            L15_2 = false
            L16_2 = L3_2.takenplayerid
            L17_2 = 1
            L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2)
          end
          L4_2 = TriggerClientEvent
          L5_2 = "rtx_themepark:Ferris:SeatExit"
          L6_2 = L3_2.takenplayerid
          L4_2(L5_2, L6_2)
          L4_2 = TriggerClientEvent
          L5_2 = "rtx_themepark:Global:AttractionUsing"
          L6_2 = L3_2.takenplayerid
          L7_2 = false
          L4_2(L5_2, L6_2, L7_2)
          L3_2.taken = false
          L3_2.takenplayerid = nil
          L3_2.seatround = 0
          L3_2.seattype = 1
          L4_2 = ferrishandler
          L5_2 = ferrishandler
          L5_2 = L5_2.currentplayers
          L5_2 = L5_2 - 1
          L4_2.currentplayers = L5_2
          goto lbl_74
          ::lbl_65::
          L4_2 = TriggerClientEvent
          L5_2 = "rtx_themepark:Notify"
          L6_2 = L2_2
          L7_2 = Language
          L8_2 = Config
          L8_2 = L8_2.Language
          L7_2 = L7_2[L8_2]
          L7_2 = L7_2.inprogress
          L4_2(L5_2, L6_2, L7_2)
        end
      end
    end
  end
  ::lbl_74::
end
L0_1(L1_1, L2_1)
